/**
 * 读取html文件的内容
 */

const fs = require('fs')
const util = require('util')
const mineReadFile = util.promisify(fs.readFile)
fs.readFile('E:\content.txt', (err, data1) => {
  if (err) throw err
  fs.readFile('E:\content1.txt', (err, data2) => {
  if (err) throw err
  fs.readFile('E:\content2.txt', (err, data3) => {
    if (err) throw err
    console.log(data1+data2+data3);
  })
})
})

async function main() {
  let data1 = await mineReadFile('E:\content.txt')
  let data2 = await mineReadFile('E:\content1.txt')
  let data3 = await mineReadFile('E:\content2.txt')
  console.log(data1+data2+data3);
}